<?php
session_start();
include('conn.php');
if(!isset($_POST['submit']))
{
	exit("Method error!");
}
$std_email = $_POST['std_email'];
$_SESSION['e_mail'] = $std_email;
$std_paw = $_POST['std_paw'];
$check_query = mysql_query("select email from user where std_email = '$std_email' and std_paw = '$std_paw' ");
if($result = mysql_fetch_array($check_query))
{

	echo "<br/><a href='index.html'>welcome,login success!</a>";
	exit;
}
else{
	exit("登录失败！");
}